<ui:composition template="/WEB-INF/templates/main-template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="sidebar">
		<ui:include src="/WEB-INF/templates/public-sidebar.xhtml" />
	</ui:define>
	<ui:define name="content">
		<h:form>
		<p:growl id="growl"></p:growl>
			<h:outputText value="VIEW/EDIT INTERNATIONAL PROJECT ASSIGNMENT" styleClass="outputTextTitle" />
			<h:panelGrid style="width: 100%; text-align: left; ">
		    <p:scrollPanel style="width: 800px;height:300px"> 
		    	<p:dataTable id="internatioanlProjectAssignmentViewEditTable" style="width: 100%" value="#{internationalProjectAssignmentsListBean.projectAssignmentsList}" var="row"    >
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg['projectassignmentid.lable']}" />
						</f:facet>
							<h:outputText value="#{row.projectAssignmentCode}" /> 
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg['projectname.label']}" />
						</f:facet>
						<h:outputText value="#{row.project.projectName}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg['clientname.label']}" />
						</f:facet>
						<h:outputText value="#{row.project.client}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg['clientlocation.label']}" />
						</f:facet>
						<h:outputText value="#{row.project.clientLocation}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg['createdate.label']}" />
						</f:facet>
						<h:outputText value="#{row.createDate}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg['recommenderstatus.lable']}" />
						</f:facet>
						<h:outputText value="#{row.recommendationStatus}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg['approverstatus.lable']}" />
						</f:facet>
						<h:outputText value="#{row.approvalStatus}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="Operation" />
						</f:facet>
				
					<p:commandButton value="Edit/View" actionListener="#{internationalProjectAssignmentsListBean.viewProjectAssignmentInEditModeAction}" >
					<f:param id="projectAssignmentId" name="projectAssignmentId" value="#{row.projectAssignmentId}" />
					<f:param id="employeeId" name="employeeId" value="#{internationalProjectAssignmentsListBean.wamUser.employee.employeeId}" />
                    </p:commandButton>					
					</p:column>
					
			</p:dataTable>
			</p:scrollPanel>
			</h:panelGrid>
			
			
		 
			
		
		</h:form>
	</ui:define>
</ui:composition>

